import React from 'react'
import '../tables.css'

const BasicThead = props => {
    const {tHead,} = props
    // console.log(tHead)

    const t = (
        <thead>
            <tr>
                {tHead.map && tHead.map(th => <th scope='col' key={th.dataIndex}>{`${th.title}`}</th>)}
            </tr>
        </thead>
    )

    return t
}

export default BasicThead
